#pragma once

#include <QtWidgets/QWidget>
#include "ui_TcpServer.h"
#include "qicon.h"
#include "qtcpserver.h"
#include "qtcpsocket.h"
#include "myThread.h"

class TcpServer : public QWidget
{
    Q_OBJECT

public:
    TcpServer(QWidget *parent = nullptr);
    ~TcpServer();

private slots:
	void newClientHandler();
	void clientInfoSlot();
	void receiveSlot(QString str);

private:
    Ui::TcpServerClass ui;
	QTcpServer *server;
};
